package com.kayt.cyberBar.cpublic.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cpublic.business.entity.po.CPublicKey;

public interface IPublicKeyDao {

	public Long addKey(CPublicKey key) throws SQLException;

	public void updateKey(CPublicKey key) throws SQLException;

	public void batchInsert(List<CPublicKey> itemList);

	public int deleteKey(CPublicKey key);

	public CPublicKey getKey(String keyId);

	public CPublicKey getKeyByCode(String code) throws SQLException;

	public PageData<CPublicKey> getKeyList(int pageNum, int pageSize, String hql, Object[] params,
			LinkedHashMap<String, String> keyMap) throws SQLException;

	public List getKeyListByHql(int pageNum, int pageSize, String hql, Object[] params) throws SQLException;

	public boolean checkValidate(String paramKey, String paramValue) throws SQLException;

}
